/*
 * 将输入中的每个单词分别放在单独一行输出
 */

#include <stdio.h>

#define IN 1
#define OUT 0

int main() {
    int c, state;

    state = OUT;
    while ((c = getchar()) != EOF) {
        if (c == ' ' || c == '\n' || c == '\t') state = OUT;
        else if ( state == OUT) {
            putchar('\n');
            state = IN;
        }
        putchar(c);
    }

    return 0;
}
